package cn.vawn.exam.service;

import cn.vawn.base.dto.PageDTO;
import cn.vawn.base.dto.RequestPageDTO;
import cn.vawn.exam.entity.Paper;
import cn.vawn.exam.entity.PaperType;
import cn.vawn.exam.entity.QuestionSerial;

import java.util.List;
import java.util.Map;

public interface IPaperService {

	PageDTO getAllPaper(RequestPageDTO requestPageDTO);
	
	List<PaperType> getAllPaperType();

	PageDTO getPartPaper(RequestPageDTO requestPageDTO,
							 String name, String type, String startTime, String endTime);
	
	void deletePaper(int paperId);
	
	List<Map<String, Object>> getAllPapaerName();
	
	List<Map<String, Object>> getPaperAllConetnt(int paperId);
	
	void updatePaper(Paper paper, Integer userId);
	
	void addPaper(Paper paper);

	Paper getPaperById(int paperId);

	void insertPaper(Paper paper, List<QuestionSerial> questionSerials);

	void updatePaper(Paper paper, List<QuestionSerial> questionSerials);

	void updateAnswer(List<String> serials);
	
}
